<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/style.css"/>
<link href="assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/ace.min.css" />
<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
<!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/typeahead-bs2.min.js"></script>
<script src="assets/layer/layer.js" type="text/javascript" ></script>
<script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="assets/js/ace-elements.min.js"></script>
<script src="assets/js/ace.min.js"></script>
<style type="text/css"> 
         #preview{width:100px;height:100px;border:1px solid #000;overflow:hidden;} 
         #imghead {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image);} 
        </style>
<title>用户中心</title>
<script type="text/javascript">  
        function previewImage(file) 
        { 
          var MAXWIDTH  = 100;  
          var MAXHEIGHT = 100; 
          var div = document.getElementById('preview'); 
          if (file.files && file.files[0]) 
          { 
              div.innerHTML ='<img id=imghead>'; 
              var img = document.getElementById('imghead'); 
              img.onload = function(){ 
                var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight); 
                img.width  =  rect.width; 
                img.height =  rect.height; 
<!--//                 img.style.marginLeft = rect.left+'px'; -->
                img.style.marginTop = rect.top+'px'; 
              } 
              var reader = new FileReader(); 
              reader.onload = function(evt){img.src = evt.target.result;} 
              reader.readAsDataURL(file.files[0]); 
          } 
          else <!--//兼容IE--> 
          { 
            var sFilter='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'; 
            file.select(); 
            var src = document.selection.createRange().text; 
            div.innerHTML = '<img id=imghead>'; 
            var img = document.getElementById('imghead'); 
            img.filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src = src; 
            var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight); 
            status =('rect:'+rect.top+','+rect.left+','+rect.width+','+rect.height); 
            div.innerHTML = "<div id=divhead style='width:"+rect.width+"px;height:"+rect.height+"px;margin-top:"+rect.top+"px;"+sFilter+src+"\"'></div>"; 
          } 
        } 
        function clacImgZoomParam( maxWidth, maxHeight, width, height ){ 
            var param = {top:0, left:0, width:width, height:height}; 
            if( width>maxWidth || height>maxHeight ) 
            { 
                rateWidth = width / maxWidth; 
                rateHeight = height / maxHeight; 
                  
                if( rateWidth > rateHeight ) 
                { 
                    param.width =  maxWidth; 
                    param.height = Math.round(height / rateWidth); 
                }else 
                { 
                    param.width = Math.round(width / rateHeight); 
                    param.height = maxHeight; 
                } 
            } 
              
            param.left = Math.round((maxWidth - param.width) / 2); 
            param.top = Math.round((maxHeight - param.height) / 2); 
            return param; 
        } 
</script>
</head>
<body>
<div class="margin clearfix">
  <div class="stystems_style">
    <div class="tabbable">
      <ul class="nav nav-tabs" id="myTab">
        <li class="active"> <a data-toggle="tab" href="#newdropdown"><i class="green fa fa-home bigger-110"></i>&nbsp;用户信息</a></li>
        <li class=""> <a data-toggle="tab"  href="#home">&nbsp;基本设置</a> </li>
        <li class=""> <a data-toggle="tab"  href="#other">实名认证</a> </li>
      </ul>
      <div class="tab-content">
        <div id="home" class="tab-pane">
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>设置头像： </label>
            <br/>
            <div id="preview" style="margin-left:126px;"><img id="imghead" width=80 height=80 border=0 src='images/user.png'> </div>
            <input type="file" style="margin-left:126px;" onchange="previewImage(this)" />
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>用户名称： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title"  style=" width:300px" class="col-xs-10 ">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>用户职别： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title"  style=" width:300px" class="col-xs-10">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>移动电话： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title"  style=" width:300px" class="col-xs-10">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>固定电话： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title" style=" width:300px" class="col-xs-10">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>电子邮箱： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title" placeholder="" style=" width:300px" class="col-xs-10 ">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>详细地址： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title" placeholder="" style=" width:300px" class="col-xs-10 ">
            </div>
          </div>
          <div class="Store_Introduction">
            <div class="title_name">个性签名</div>
            <div class="info"> <br />
            </div>
          </div><br/>
          <div class="Button_operation">
            <button onclick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="fa fa-save "></i>&nbsp;保存</button>
            <button onclick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
          </div>
        </div>
        <div id="profile" class="tab-pane "> </div>
        <div id="dropdown" class="tab-pane"> </div>
        <div id="other" class="tab-pane">
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>真实姓名： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title"  style=" width:300px" class="col-xs-10 ">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>身份证号： </label>
            <div class="col-sm-9">
              <input type="text" id="website-title"  style=" width:300px" class="col-xs-10">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>上传照片： </label>
            <br/>
            <div id="preview" style="margin-left:126px;"><img id="imghead" width=80 height=80 border=0 src='images/user.png'> </div>
            <input type="file" style="margin-left:126px;" onchange="previewImage(this)" />
          </div>
          <div id="preview" style="margin-left:126px;"><img id="imghead" width=80 height=80 border=0 src='images/user.png'> </div>
          <input type="file" style="margin-left:126px;" onchange="previewImage(this)" />
          <br/>
          <div class="Button_operation">
            <button onclick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="fa fa-save "> </i>&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
            <button onclick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
          </div>
        </div>
        <div id="newdropdown" class="tab-pane active">
          <div class="detailed_style clearfix"> <em class=""></em>
            <div class="shop_logo"><img src="images/detailnoimg.png" /></div>
            <ul class="shop_content clearfix">
              <li class="shop_name">
                <label class="label_name">用户名称：</label>
                <span class="info">个人</span>
                <div class="Authenticate"><i class="icon-yxrz"></i><i class="icon-yhk"></i><i class="icon-sjrz"></i><i class="icon-grxx"></i></div>
              </li>
              <li>
                <label class="label_name">用户类型：</label>
                <span class="info">个人</span></li>
              <li>
                <label class="label_name">用户职别：</label>
                <span class="info">个人</span></li>
              <li>
                <label class="label_name">申请时间：</label>
                <span class="info">2016-4-3</span></li>
              <li>
                <label class="label_name">状&nbsp;&nbsp;&nbsp;&nbsp;态：</label>
                <span class="info">待审核</span></li>
              <li>
                <label class="label_name">申请人姓名：</label>
                <span class="info">张小泉</span></li>
              <li>
                <label class="label_name">移动电话：</label>
                <span class="info">13567678987</span></li>
              <li>
                <label class="label_name">电子邮箱：</label>
                <span class="info"></span></li>
              <li>
                <label class="label_name">固定电话：</label>
                <span class="info">025-56787876</span></li>
            </ul>
          </div>
          <div class="Store_Introduction">
            <div class="title_name">个性签名</div>
            <div class="info"> <br />
            </div>
          </div>
          <div class="At_button">
            <button onclick="return_close();" class="btn btn-default radius" type="button">返回上一步</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>
